package cn.topcodes.tcsf.admin.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import cn.topcodes.tcsf.admin.commons.generic.OperateLogConfig;
import lombok.Data;
import lombok.ToString;
import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 系统访问日志
 * @author unicorn
 */
@Data
@ToString(callSuper = true)
@OperateLogConfig(generic = false)
@Table(name = "t_sys_access_log")
public class SysAccessLog extends IdEntity {
  
	private static final long serialVersionUID = 1L;

	/*访问url*/
	private String url;

	/*请求方法*/
    private String method;

    /*访客ip*/
    private String ip;

    /*耗费时间(毫秒)*/
    private Integer consuming;

    /*请求头部*/
    @Column(name = "request_head")
    private String requestHead;

    /*请求体*/
    @Column(name = "request_body")
    private String requestBody;

    /*响应头*/
    @Column(name = "response_head")
    private String responseHead;

    /*响应体*/
    @Column(name = "response_body")
    private String responseBody;

    /*请求时间*/
    @Column(name = "request_time")
    private Date requestTime;

    /*响应时间*/
    @Column(name = "response_time")
    private Date responseTime;

}